

<div class="container">

    <!--<div class="container con_wrap">
        <div class="row ">
            <div class="breadcrumb_wrap">
                <ul class="breadcrumb">
                    <li> <a href="index.html">首页</a> <span class="divider">></span> </li>
                    <li class="active">我的购物车</li>
                </ul>
            </div>
            <div >
                <div >
                    <ul >
                        <li ng-repeat="goods in cart">
                            <div>
                                <label> </label>
                                <input  type="checkbox" name="checkedGoods" value="{{goods}}" ng-checked="allcheck" ng-click="checkChange()" >
                                <a href="#">
                                    <img ng-if="goods.iconUrl!=undefined&&goods.iconUrl!=''"  ng-src="/dapi/download/getImageIO?imgUrl={{goods.iconUrl}}" style="height: 70px;width: 70px">
                                    <img ng-if="goods.iconUrl==undefined||goods.iconUrl==''"  ng-src="/app/images/goodsDefault.gif">
                                </a>
                                <h5><a href="/jewellery/common/goodsDetail/{{goods.id}}">{{goods.title}}约{{goods.minWeight}}-{{goods.maxWeight}}克 加工费{{goods.jgf}}元/克</a></h5>
                                <p>¥{{(goods.price+goods.jgf)*(goods.minWeight+goods.maxWeight)/2*goods.number}}</p>
                                <input type="number" ng-model="goods.number" min="1" ng-change="goodsNumberChange(goods)">
                                <button ng-click="deleteGoods(goods.id,goods.goodsWeightId)">删除</button>
                                <input type="text"  placeholder="请备注..." ng-model="goods.content"/>
                            </div>
                        </li>
                    </ul>
                    <ul ng-show="showYHQ" >
                        <li >
                            <a  href="#coupon_select_box">
                                选择优惠券
                                <span class="mui-badge">未选择</span>
                            </a>
                        </li>
                    </ul>
                    <div ng-show="showYHQ">
                        <input type="text" value="" placeholder="请备注..." ng-model="content"/>
                    </div>
                    <div ng-show="showYHQ" id="coupon_select_box" class="coupon_select_box" style="display: block;">
                        <div >
                            <label>暂不使用</label>
                            <input name="radio1" type="radio" checked="" ng-click="noUseCou()" >
                        </div>
                        <a href="#coupon_select_box"><i ></i></a>
                        <div >
                            <div >
                                <ul >
                                    <li  ng-repeat="coupon in couponList">
                                        <div >
                                            <label></label>
                                            <input name="radio1" type="radio" ng-click="checkCoupon(coupon)">
                                        </div>
                                        <div >
                                            <div ></div>
                                            <div >
                                                <div class="top ">
                                                    <div ng-if="coupon.coupon.typeCode=='1'" ><i>¥</i><span>{{coupon.coupon.discountPrice}}</span></div>
                                                    <div ng-if="coupon.coupon.typeCode=='2'" ><span>{{coupon.coupon.discountRatio}}</span>折</div>
                                                    <div class="condition mui-pull-left mui-col-xs-6 ">
                                                        <span>优惠券</span>
                                                        <p>{{coupon.coupon.title}}</p>
                                                    </div>
                                                </div>
                                                <p class="term">有效期：{{coupon.coupon.startDate|dateStr:"yyyy-MM-dd hh:mm"}}至{{coupon.coupon.endDate|dateStr:"yyyy-MM-dd hh:mm"}}</p>
                                            </div>
                                            <div ></div>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="spe_btn ">
                            <button type="button "  ng-click="couUse()">确认</button>
                        </div>
                    </div>
                </div>
            </div>
            <div >
                <div >
                    <div >
                        <label>全选</label>
                        <input name="checkbox" value="Item 1" type="checkbox" ng-model="allcheck" ng-click="checkAllBtn()">
                    </div>
                    <span ></span>
                </div>
                <a >
                    <span >合计：<span class="num">¥{{dealPrice}}</span></span>
                </a>
                <button type="button" id="addToOrder"  style="height: 50px;" ng-click="addToOrder()">
                    <span class="mui-tab-label">提交({{sum}}件)</span></button>
            </div>
        </div>
    </div>-->



    <div class="bread">
        <span>您当前的位置：</span>
        <a href="">首页</a> >
        <a href="">我的购物车</a>
    </div>
    <div class="shopping-cart">
        <div class="hd clearfix" ng-repeat="goods in cart" style="position: relative">
            <span style="position: absolute;top: 30%">
                <input type="checkbox" name="checkedGoods" value="{{goods}}" ng-checked="allcheck" ng-click="checkChange()" >
            </span>
            <div class="imgbox clearfix" >
                <div class="img">
                    <img ng-if="goods.iconUrl!=undefined&&goods.iconUrl!=''"  ng-src="/dapi/download/getImageIO?imgUrl={{goods.iconUrl}}" style="height: 160px;width: 160px">
                    <img ng-if="goods.iconUrl==undefined||goods.iconUrl==''"  ng-src="/app/images/goodsDefault.gif">
                </div>
                <div class="text">
                    <div class="h"><a  href="/jewellery/common/goodsDetail/{{goods.id}}">{{goods.title}}</a></div>
                    <div class="p">
                        <p>约{{goods.minWeight}}-{{goods.maxWeight}}克 加工费{{goods.jgf}}元/克</p>
                        <p class="y">¥{{(goods.price+goods.jgf)*(goods.minWeight+goods.maxWeight)/2*goods.number}}</p>
                    </div>
                    <div class="input-group">
                        <span>数  量</span>
                        <input type="number" ng-model="goods.number" min="1" ng-change="goodsNumberChange(goods)" style="width: 100px">
                        <span class="btn-del" ng-click="deleteGoods(goods.id,goods.goodsWeightId)">删除</span>
                    </div>
                </div>
                <textarea rows="6" class="textarea" placeholder="请备注..." ng-model="goods.content"></textarea>
            </div>
        </div>
        <div class="bd clearfix" ng-show="showYHQ">
            <div class="space"></div>
            <div class="textbox" >
                <button  style="background: #f0800b;padding: 10px;color: #fff;border: none;border-radius: 6px"data-toggle="modal" data-target="#myModal" >选择优惠券</button>
            </div>
        </div>
        <!-- 模态框（Modal） -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">优惠券</h4>
                    </div>
                    <div class="modal-body">
                        <div class="col2">
                            <div class="couponList">
                                <div class="span1 ng-binding">
                                    <input type="radio" name="ygj" ng-click="noUseCou()" >
                                    <span><i>¥</i>0</span>
                                </div>
                                <div class="span2">
                                    <p>优惠券</p>
                                    <p class="p ng-binding">暂不使用</p>
                                </div>
                                <div class="date ng-binding">有效期：无</div>
                            </div>

                            <div class="couponList" ng-repeat="coupon in couponList">
                                <div class="span1 ng-binding">
                                    <input type="radio" name="ygj" ng-click="checkCoupon(coupon)" >
                                    <span  ng-if="coupon.coupon.typeCode=='1'"><i>¥</i>{{coupon.coupon.discountPrice}}</span>
                                    <span  ng-if="coupon.coupon.typeCode=='2'" >{{coupon.coupon.discountRatio}}折</span>
                                </div>
                                <div class="span2">
                                    <p>优惠券</p>
                                    <p class="p ng-binding">{{coupon.coupon.title}}</p>
                                </div>
                                <div class="date ng-binding">有效期：{{coupon.coupon.startDate|dateStr:"yyyy-MM-dd hh:mm"}}至{{coupon.coupon.endDate|dateStr:"yyyy-MM-dd hh:mm"}}</div>
                            </div>

                        </div>
                    </div>
                    <div class="modal-footer">
                        <div class="btn-group">
                            <button type="button" class="btn btn-success"  style="padding: 5px 10px ;" ng-click="couUse()" data-dismiss="modal">确认</button>

                        </div>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal -->
        </div>


        <div class="bd clearfix">
            <p>备  注</p>
            <textarea rows="6" class="textarea" placeholder=""  ng-model="content"></textarea>
        </div>

        <div class="all clearfix">
            <span >
                <input type="checkbox"   ng-model="allcheck" ng-click="checkAllBtn()">
            </span>
            <span class="span" >全选</span>
            <span class="span" >合计约/g： {{totalWeight}}g</span>
            <button type="button" id="addToOrder" class="btn-success" ng-click="addToOrder()" style="height: 40px;border: none;border-radius: 6px;background-color: #f0800b;">
                <span class="mui-tab-label ">提交({{sum}}件)</span>
            </button>
        </div>
    </div>
</div>